refactor: replace 1347 hardcoded hex with semantic Tailwind classes#450
Open
itskai-dev wants to merge 1 commit into
Open
refactor: replace 1347 hardcoded hex with semantic Tailwind classes#450itskai-dev wants to merge 1 commit into
itskai-dev wants to merge 1 commit into
Conversation
Migrated all A-class arbitrary hex values (bg-[#hex], text-[#hex], border-[#hex]) to semantic Tailwind classes referencing existing CSS variables in globals.css. Mapping: - #06D6A0 (primary brand) → text/bg/border-primary - #F8FAFC/#E2E8F0 (text) → text-foreground - #0a0a0a/#0f0f0f/#0A0E17/#111 (dark bg) → bg-background - #141414/#0D1322 → bg-card - #1A1F2E/#1a1a1a → bg-secondary - #F59E0B → solar, #8B5CF6 → purple, #3B82F6 → electric-blue - #EC4899 → destructive - Various one-off colors consolidated to nearest semantic token B-class exceptions (6 instances, documented): - #5865F2 (Discord), #1DA1F2 (Twitter), #3178c6 (TypeScript), #f7df1e (JavaScript) These are third-party brand colors that correctly stay hardcoded. 175 files changed, 1347 insertions(+), 1347 deletions(-)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
task-1771427753854-uhywf9ps8 — forAgents.dev A-class hex cleanup
What
Replaced all 1347 hardcoded arbitrary Tailwind hex values (
bg-[#hex],text-[#hex],border-[#hex]) across 175 files with semantic Tailwind classes that reference the existing CSS variables inglobals.css.Mapping
#06D6A0primary#F8FAFC/#E2E8F0foreground#0a0a0a/#0f0f0f/#0A0E17/#111background#141414/#0D1322card#1A1F2E/#1a1a1asecondary#F59E0Bsolar#8B5CF6purple#3B82F6electric-blue#EC4899destructiveB-class Exceptions (6 instances, documented)
Third-party brand colors that correctly stay hardcoded:
#5865F2— Discord blurple#1DA1F2— Twitter blue#3178c6— TypeScript#f7df1e— JavaScriptVerification
Done Criteria